// 1. 导入页面所需依赖资源（React核心、UI组件、工具函数等）
import React from 'react';
import { Card, Tabs } from 'antd';
import { ImpactLoadCard, ImpactStrengthCard } from '../card/RockImpactLoadCard';

// 2. 定义页面组件
const RockImpactLoadPage: React.FC = () => {
  // 使用items配置替代TabPane组件
  const tabItems = [
    {
      key: '1',
      label: '冲击力计算',
      children: (
        <Card title="冲击力计算">
          <ImpactLoadCard />
        </Card>
      ),
    },
    {
      key: '2',
      label: '冲击荷载强度计算',
      children: (
        <Card title="冲击荷载强度计算">
          <ImpactStrengthCard />
        </Card>
      ),
    },
  ];

  return <Tabs defaultActiveKey="1" items={tabItems} />;
};

export default RockImpactLoadPage;